Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add http testing #143

Merged
merged 13 commits into from
Jan 27, 2023
Merged

add http testing #143

merged 13 commits into from
Jan 27, 2023

Conversation

tobert
Copy link
Collaborator

@tobert tobert commented Jan 27, 2023

Refactors otlpserver to an interface and adds a simple HTTP server that can receive and translate traces.

This is step 1 to do #142 correctly, as I wish to test the heck out of endpoint and protocol combinations in the next couple PRs.

Amy Tobey added 12 commits January 27, 2023 12:20
Broke the surface otel-cli and main_test care about into an interface.

Ported grpcserver and referents to the interface.

Added skeleton http server.

Tests pass :)
Added a simple http handler for testing. Not ready yet.

Added plumbing so http protocol can be requested, but it's not used yet.

Correct some types.
Broke the code that converts protobuf data to CliEvents out into
its own function and moved it to clievent.go.

Converted the gRPC server to use that.

Added it to the HTTP server and it just worked the first time.

Since proto is now imported directly, it go.mod changed to reflect that.
Added ServerMeta to the CliEvent struct as a string map that
httpserver now plugs a bunch of metadata into.

Added that to the test harness.

Added metadata to the test so now path & proto are verified.
edw-eqix
edw-eqix previously approved these changes Jan 27, 2023
@tobert tobert merged commit b164427 into main Jan 27, 2023
@tobert tobert deleted the add-http-to-test-harness branch January 27, 2023 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants